<template>
      <div class="card bg-white p-3 mt-3 ">
      <div class="card-header d-flex px-3 pb-3 mt-2">
        <i class="iconfont mr-2" :class="`icon-${icon}`"></i>
        <div class="flex-1 fs-xl">{{title}}</div>
        <i class="iconfont icon-shenglvehao "></i>
      </div>
      <div class="border-line"></div>

      <div class="card-body py-3">
        <slot></slot>
      </div>
    </div>
</template>

<script>
  export default {
    props:{
      title: { type: String, required: true},
      icon: { type: String, required: true},
    }
  }
</script>

<style lang='scss'>
@import "../assets/scss/_variables.scss";

.border-line{
    width:100%;
    height: 1px; 
    transform:scaleY(0.5);
    background: map-get($colors, 'grey');
}

.card{
  border-bottom: 1px solid $border-color;
}
</style>